package acwing.模拟;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 * Excel地址
 *
 * @author yang
 * @date 2021/12/12
 */
public class Excel地址 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        List<Integer> list = new ArrayList<>();
        int num = sc.nextInt();
        while (num != 0) {
            int t = num % 26;
            if (t == 0) t = 26;
            num = (num - t) / 26;
            list.add(t);
        }
        for (int i = list.size() - 1; i >= 0; i--) {
            // 观察到 进制是26，但’Z’表示为26，但应该是25，和进制26重叠了
            System.out.println((char) (list.get(i)+'A' - 1));
        }

    }
}
